#pragma once
#include "standard_library.h"


#define MYSQL_HOST_7TH "localhost"
#define MYSQL_PORT_7TH "3306"
#define MYSQL_USERNAME_7TH "lyh"
#define MYSQL_PASSWD_7TH "12345"
#define MYSQL_DB_7TH "test"

int initMysql_7th();

int getConnect_7th(MYSQL **conn);

int closeConnect_7th(MYSQL *conn);

int closeMysql_7th();

void initinBindParams(MYSQL_BIND *inbind, int mysql_type, void *buffer,
					  unsigned long len);

void initBindResult(MYSQL_BIND *outbind, int mysql_type, void *res_buffer,
					unsigned long need_size, bool *is_null,
					unsigned long *get_szie, bool *error);

int initStmt(MYSQL_STMT **stmt, MYSQL *conn, char *sql);